﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace InfoLogic.Models
{
    [Table("Product")]
    public class Product
    {
        [Key]
        public System.Guid ProductId { get; set; }
        public string productName { get; set; }
        public Double purchasePrice { get; set; }
        public Decimal sellingPrice { get; set; }
        public int quantityOnHand { get; set; }
        public System.Guid BusinessId { get; set; }
        [ForeignKey("BusinessId")]
        public virtual ICollection<Business> Business { get; set; }
        public virtual ICollection<Sales> Sales { get; set; }

    }
}